package com.Poly01;

public class Teacher extends Person {
    private double salary;
    public Teacher(String name, int age, double salary) {
        super(name,age);
        this.salary = salary;
    }
    public void setSalary(double salary) {
        this.salary = salary;
    }
    public double getSalary() {
        return salary;
    }
    public String say(){
        return super.say()+ " salary = " + salary;
    }
    public String Teach(){
        return super.say()+ " 正在教javaEE";
    }
}
